<?php


class tx_zlib_viewhelper_extConf extends tx_zlib_abstract_viewhelper
{

	/**
	 * Retrieve an extConf value
	 *
	 * Return a value from extension configuration.
	 *
	 * @param string
	 * @return string
	 */
	public function extConf($fieldName)
	{
		$pi = $this->getPi();
		global $TYPO3_CONF_VARS;
		if(isset($TYPO3_CONF_VARS['EXT']['extConf'][$pi->extKey])) {
			$extConf = @unserialize($TYPO3_CONF_VARS['EXT']['extConf'][$pi->extKey]);
			if(array_key_exists($fieldName, $extConf)) {
				return $extConf[$fieldName];
			}
		}
		return null;
	}

}


if (defined('TYPO3_MODE') && $TYPO3_CONF_VARS[TYPO3_MODE]['XCLASS']['ext/zlib/views/helpers/class.tx_zlib_viewhelper_extConf.php'])	{
	include_once($TYPO3_CONF_VARS[TYPO3_MODE]['XCLASS']['ext/zlib/views/helpers/class.tx_zlib_viewhelper_extConf.php']);
}
